﻿@model Data.Web.Category

@{
     
    
}
<h2>Thêm mới danh mục</h2>


@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Category</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>  

        <div class="editor-label">
            @Html.LabelFor(model => model.Parent)
        </div>
        <div class="editor-field">
            @Html.DropDownList("Parent") 
        </div> 

        <div class="editor-label">
            @Html.LabelFor(model => model.Status)
        </div>
        <div class="editor-field">
         <input id="Status" class="check-box" type="checkbox" value="true" name="Status" checked="checked" data-val-required="The Status field is required." data-val="true">
     </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
